<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        body {
            height: 345px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-content: flex-start;
        }
        
        [class$="face"] {
            width: 104px;
            height: 104px;
            background-color: #323232;
            margin-left: 10px;
            margin-top: 10px;
            border-radius: 10px;
        }
        /* 这个是外边的正方形 所有以face结尾的有这个属性*/
        
        .first-face {
            display: flex;
            /*  小球球 主轴是x轴 */
        }
        
        .dot {
            display: block;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #FFFFFF;
            margin: 4px;
        }
        
        body>div:nth-child(2) {
            /* 主轴现在是y轴 那么x是侧轴 */
            justify-content: flex-start;
            /* 其实我不明白为什么现在是单行 */
            align-items: center;
        }
        
        body>div:nth-child(3) {
            justify-content: flex-start;
            align-items: flex-end;
        }
        
        body>div:nth-child(4) {
            justify-content: center;
            align-items: flex-start;
        }
        
        body>div:nth-child(5) {
            justify-content: center;
            align-items: center;
        }
        
        body>div:nth-child(6) {
            justify-content: center;
            align-items: flex-end;
        }
        
        body>div:nth-child(7) {
            justify-content: flex-end;
        }
        
        body>div:nth-child(8) {
            justify-content: flex-end;
            align-items: center;
        }
        
        body>div:nth-child(9) {
            justify-content: flex-end;
            align-items: flex-end;
        }
        /* 单项目结束 */
        /* 双项目开始 */
        
        .second-face {
            display: flex;
        }
        
        body>div:nth-child(10) {
            justify-content: space-between;
        }
        
        body>div:nth-child(11) {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        body>div:nth-child(12) {
            justify-content: flex-start;
            align-items: center;
        }
        
        body>div:nth-child(12) .dot:nth-child(1) {
            align-self: flex-start;
        }
        
        body>div:nth-child(13) {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
        }
        
        body>div:nth-child(14) {
            justify-content: space-between;
            align-items: flex-end;
        }
        
        body>div:nth-child(15) {
            justify-content: space-around;
            align-items: center;
        }
        
        body>div:nth-child(15) .dot:nth-child(1) {
            align-self: flex-start;
        }
        /* 三项目开始 */
        
        .third-face {
            display: flex;
        }
        
        body>div:nth-child(16) .dot:nth-child(2) {
            align-self: center;
        }
        /* 这里要注意  . 要空格隔开 */
        
        body>div:nth-child(16) .dot:nth-child(3) {
            align-self: flex-end;
        }
        
        .fourth-face {
            display: flex;
            justify-content: space-between;
        }
        
        .fourth-face .column {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        body>div:nth-child(18) {
            justify-content: space-between;
        }
        
        body>div:nth-child(18) .dot:nth-child(2) {
            align-self: flex-end;
        }
        
        .fifth-face {
            display: flex;
        }
        
        .fifth-face .column {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .fifth-face .column:nth-child(2) {
            align-self: center;
        }
        
        .sixth-face {
            display: flex;
            justify-content: space-between;
        }
        
        .sixth-face .column {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }
        
        .cc-face {
            display: flex;
            justify-content: space-between;
        }
        
        .cc-face .column {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .cc-face .column:nth-child(2) {
            align-self: flex-end;
        }
    </style>
</head>

<body>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <div class="first-face">
        <span class="dot"></span>
    </div>
    <!-- 开始双项目 -->
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <!-- 三项目 -->
    <div class="third-face">
        <span class="dot"></span>
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <!-- 四项目 -->
    <div class="fourth-face">
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
    </div>
    <!-- 双项目 -->
    <div class="second-face">
        <span class="dot"></span>
        <span class="dot"></span>
    </div>
    <!-- 五项目 -->
    <div class="fifth-face">
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
        <div class="column">
            <span class="dot"></span>
        </div>
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
    </div>
    <!-- 六项目 -->
    <div class="sixth-face">
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
    </div>
    <!-- 第二个六项目 -->
    <div class="cc-face">
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
        <div class="column">
            <span class="dot"></span>
            <span class="dot"></span>
        </div>
    </div>
    <pre style="border: 1px solid; position: absolute;right: 100px;">
     
        body {
            height: 345px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-content: flex-start;
        }
        
        [class$="face"] {
            width: 104px;
            height: 104px;
            background-color: #323232;
            margin-left: 10px;
            margin-top: 10px;
            border-radius: 10px;
        }
        /* 这个是外边的正方形 所有以face结尾的有这个属性*/
        
        .first-face {
            display: flex;
            /*  小球球 主轴是x轴 */
        }
        
        .dot {
            display: block;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #FFFFFF;
            margin: 4px;
        }
    </pre>
</body>

</html>